const {app,BrowserWindow }  = require('electron')



const createWindow=()=>{
    const win = new BrowserWindow({
        width:400,
        height:800
    })
    // win.loadURL('http://www.baidu.com')
    win.loadFile('index.html')

    //打开调试
    win.webContents.openDevTools()
}

app.on('window-all-closed',()=>{
    console.log(100);
})
app.whenReady().then(createWindow)